From 01bc627cf527018b07026e693d41ea77540a4028 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 3 May 2001 17:47:37 +0000 Subject: [PATCH] (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix the change from 2001-04-30. --- src/xterm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index a967774f57a..6bc3ced3a90 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10025,6 +10025,9 @@ XTread_socket (sd, bufp, numchars, expected) } else { +#ifndef USE_TOOLKIT_SCROLL_BARS + struct scroll_bar *bar; +#endif #if defined USE_X_TOOLKIT && defined USE_LUCID /* Submenus of the Lucid menu bar aren't widgets themselves, so there's no way to dispatch events @@ -10041,8 +10044,7 @@ XTread_socket (sd, bufp, numchars, expected) /* Dispatch event to the widget. */ goto OTHER; #else /* not USE_TOOLKIT_SCROLL_BARS */ - struct scroll_bar *bar - = x_window_to_scroll_bar (event.xexpose.window); + bar = x_window_to_scroll_bar (event.xexpose.window); if (bar) x_scroll_bar_expose (bar, &event); -- 2.30.2